package com.dm.cloud.images.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type ImagesAppTask.java
   * @desc ImagesAppTask
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_IMAGES_APP_TASK")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "ImagesAppTask")
public class ImagesAppTask extends BasePo {

      /** 应用ID **/ 
      @Schema(description = "应用ID")
      @Column(name = "app_code")
      private String appCode;
      /** 任务执行状态:0未开始 1正在执行 2执行完成  **/
      @Schema(description = "任务执行状态:0未开始 1正在执行 2执行完成 ")
      @Column(name = "status")
      private Integer status;
      /** 任务类型:1启动任务  2关闭任务 **/ 
      @Schema(description = "任务类型:1启动任务  2关闭任务 3重启任务")
      @Column(name = "tp")
      private Integer tp;

      @Schema(description = "执行的服务ID:由后台生成")
      @Column(name = "service_id")
      private String serviceId;
}
